package com.ruoyi.finance.test.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.test.mapper.RecTestMhMapper;
import com.ruoyi.finance.test.domain.RecTestMh;
import com.ruoyi.finance.test.service.IRecTestMhService;

/**
 * 测试Service业务层处理
 * 
 * @author wangmh
 * @date 2023-09-17
 */
@Service
public class RecTestMhServiceImpl implements IRecTestMhService 
{
    @Autowired
    private RecTestMhMapper recTestMhMapper;

    /**
     * 查询测试
     * 
     * @param testId 测试主键
     * @return 测试
     */
    @Override
    public RecTestMh selectRecTestMhByTestId(Long testId)
    {
        return recTestMhMapper.selectRecTestMhByTestId(testId);
    }

    /**
     * 查询测试列表
     * 
     * @param recTestMh 测试
     * @return 测试
     */
    @Override
    public List<RecTestMh> selectRecTestMhList(RecTestMh recTestMh)
    {
        return recTestMhMapper.selectRecTestMhList(recTestMh);
    }

    /**
     * 新增测试
     * 
     * @param recTestMh 测试
     * @return 结果
     */
    @Override
    public int insertRecTestMh(RecTestMh recTestMh)
    {
        return recTestMhMapper.insertRecTestMh(recTestMh);
    }

    /**
     * 修改测试
     * 
     * @param recTestMh 测试
     * @return 结果
     */
    @Override
    public int updateRecTestMh(RecTestMh recTestMh)
    {
        return recTestMhMapper.updateRecTestMh(recTestMh);
    }

    /**
     * 批量删除测试
     * 
     * @param testIds 需要删除的测试主键
     * @return 结果
     */
    @Override
    public int deleteRecTestMhByTestIds(Long[] testIds)
    {
        return recTestMhMapper.deleteRecTestMhByTestIds(testIds);
    }

    /**
     * 删除测试信息
     * 
     * @param testId 测试主键
     * @return 结果
     */
    @Override
    public int deleteRecTestMhByTestId(Long testId)
    {
        return recTestMhMapper.deleteRecTestMhByTestId(testId);
    }
}
